package com.cw.jeeyt.dao.intf.facade;

import java.util.List;

import com.cw.jeeyt.dao.model.facade.FacadeParamDo;
import com.cw.jeeyt.dao.query.facade.FacadeParamQuery;
import com.cw.lang.common.dao.IBaseDao;
import com.cw.lang.mybatis.dto.PageInfo;
import com.cw.lang.mybatis.dto.PageParam;

/**
 * 接口参数数据库操作接口
 *
 * @author chenw
 * @date 2019-10-31 22:35:52
 */
public interface FacadeParamDao extends IBaseDao<FacadeParamDo> {
    /**
     * 分页查询接口参数
     *
     * @param facadeParamQuery 条件
     * @return PageInfo<FacadeParamDo>
     */
    PageInfo<FacadeParamDo> selectPage(FacadeParamQuery facadeParamQuery, PageParam pageParam);

    /**
     * 根据key查询接口参数
     *
     * @param id
     * @return
     */
    FacadeParamDo selectByKey(Long id);

    /**
     * 根据key删除接口参数
     *
     * @param id
     * @return
     */
    int deleteByKey(Long id);

    /**
     * 查询接口参数信息
     *
     * @param facadeParamQuery 条件
     * @return List<FacadeParamDo>
     */
    List<FacadeParamDo> selectByExample(FacadeParamQuery facadeParamQuery);

    /**
     * 新增接口参数信息
     *
     * @param facadeParam 条件
     * @return int>
     */
    int insertBySelective(FacadeParamDo facadeParam);

    /**
     * 修改接口参数信息
     *
     * @param facadeParam
     * @return
     */
    int updateBySelective(FacadeParamDo facadeParam);
}
